<?php

/**
* This page handles the connection to the database
*/

function databaseConnect() {
		global $config;
		
		$GLOBALS["database_link"] = mysql_connect(
				$config['mysql']['hostname'],
				$config['mysql']['username'],
				$config['mysql']['password']
				);
		
		mysql_select_db($config['mysql']['database']);
		}
		
/**
* Disconnect
*/
function databaseDisconnect() {
		mysql_close($GLOBALS["database_link"]);
}

	
?>